package com.ccys.db.mapper;

import com.ccys.db.entity.TblBookingPackage;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

/**
* Created by Mybatis Generator on 2023/12/27
*/
public interface TblBookingPackageMapper extends Mapper<TblBookingPackage>, MySqlMapper<TblBookingPackage> {
    void updateMedicationShowByBookingId(@Param("bookingId") String bookingId);

    void updateDelFlagTrueByBookingIdAndByType(@Param("bookingId") String bookingId,@Param("type") String type);

    /**
     * 这个方法修改符合bookingId的数据的status = 3 并且修改show = 1
     *
     * @param bookingId bookingId
     */
    void updateStatusThreeAndShowTrueByBookingId(@Param("bookingId") String bookingId);

    /**
     * 根据bookingId和serviceType查询count数量
     *
     * @param bookingId booking
     * @param serviceType serviceType
     * @return
     */
    Integer findCountByBookingIdAndByServiceType(@Param("bookingId") String bookingId,@Param("serviceType") Integer serviceType);

    void updateDelFlagTrueByBookingId(@Param("bookingId") String bookingId);
}